package src.week7.LEIJICHENG;

public class WANGZHAOJUN extends Hero{
    public WANGZHAOJUN(String name,String mainposition,int money){
        super(name,mainposition,money);
    }

    public WANGZHAOJUN() {
        super();
    }

    @Override
    public void getteamfight(){
        System.out.println("本次团战地点为：河道");
    }
    public double compareTo(Object o){
        WANGZHAOJUN tempWANGZHAOJUN = (WANGZHAOJUN) o;
        if(tempWANGZHAOJUN.getMoney()>this.money)
        {
            return 1;
        }
        else return 0;
    }

}
